const permissionRouter = {
  path: 'permission',
  component: { render(c) { return c('router-view') } },
  redirect: 'noRedirect',
  alwaysShow: true,
  meta: {
    title: '权限控制',
    icon: 'lock'
  },
  children: [
    {
      path: 'page',
      component: () => import('@/views/example/permission/page'),
      name: 'PagePermission',
      meta: {
        title: '页面权限'
      }
    },
    {
      path: 'directive',
      component: () => import('@/views/example/permission/directive'),
      name: 'DirectivePermission',
      meta: {
        title: '指令权限'
      }
    },
    {
      path: 'role',
      component: () => import('@/views/example/permission/role'),
      name: 'RolePermission',
      meta: {
        title: '角色权限'
      }
    }
  ]
}

export default permissionRouter
